const initialData = {
  page: 1,
  pagesize: 10,
  total: 0,
  rows: [],
}

const roleManagement = (state = initialData, action) => {
  switch (action.type) {
    case 'roleManagement/getRoleList':
      return {
        ...state,
        ...action.payload,
      }
    default:
      return state
  }
}

export default roleManagement
